package com.sxhalo.fsms.service.impl;

import com.sxhalo.fsms.domain.SysRoleModules;
import com.sxhalo.fsms.domain.SysRoleModulesKey;
import com.sxhalo.fsms.mapper.SysRoleModulesMapper;
import com.sxhalo.fsms.service.ISysRoleModulesService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class SysRoleModulesServiceImpl implements ISysRoleModulesService {

	@Autowired
	private SysRoleModulesMapper mapper;
	
	@Override
	public Integer insertSelective(SysRoleModules record) {
		return mapper.insertSelective(record);
	}

	@Override
	public Integer updateByPrimaryKeySelective(SysRoleModules record) {
		return mapper.updateByPrimaryKeySelective(record);
	}

	@Override
	public Integer deleteByPrimaryKey(Object key) {
		return mapper.deleteByPrimaryKey((SysRoleModulesKey)key);
	}

	@Override
	public SysRoleModules selectByPrimaryKey(Object key) {
		return mapper.selectByPrimaryKey((SysRoleModulesKey)key);
	}

	@Override
	public List<SysRoleModules> findWhereList(String where, String order) {
		return mapper.findWhereList(where, order);
	}

	@Override
	public Integer getCount(String where) {
		return mapper.getCount(where);
	}

	@Override
	public List<SysRoleModules> findPagerList(Integer start, Integer length, String where, String order) {
		return mapper.findPagerList(start, length, where, order);
	}


	@Override
	public int deleteByRoleId(Integer roleId) {
		return mapper.deleteByRoleId(roleId);
	}


	@Override
	public int batchInsert(String[] list,Integer roleId) {
		return mapper.batchInsert(list,roleId);
	}


	@Override
	public int deleteByWhere(String where) {
		return mapper.deleteByWhere(where);
	}

}
